﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Ace;
using Ace.Application.Common;
using Ace.Application.Wiki;
using Ace.Entity.Wiki;
using Ace.IdStrategy;
using Ace.Web.Mvc;
using Ace.Web.Mvc.Authorization;
using Ace.Web.Mvc.Models;
using Chloe.Admin.Common;
using Chloe.Admin.Common.Tree;
using Microsoft.AspNetCore.Mvc;

namespace Chloe.Admin.Areas.Wiki.Controllers
{

    [Area(AreaNames.Wiki)]
    [Permission("wiki.alog")]
    public class ALogController : WebController<IALogService>
    {
        public IActionResult Index()
        {
             

            return View();
        }

        public ActionResult Models(Pagination pagination)
        { 
            PagedData<ALog> pagedData = this.Service.GetPageData(pagination);
            return this.SuccessData(pagedData);
        }


        [Permission("wiki.alog.delete")]
        [HttpPost]
        public ActionResult Delete(int Id)
        { 
            this.Service.Delete(Id);
            return this.SuccessMsg("删除成功");
        }

        

         

    }
}